import java.io.IOException;
import java.io.ObjectInputStream.GetField;
import java.net.Inet6Address;
import java.net.InetAddress;


public class Tv {
	
	private String Id;
	private String channel;
	private InetAddress ip;
	private String prog;
	private String gender;
	private String startTime;
	private String endTime;
	private String description;
	
	public Tv(String Id, String channel, String programation, String gender, String startTime, String endTime, String synopsis){
		this.Id = Id;
		this.channel = channel;
		this.prog = programation;
		this.gender = gender;
		this.startTime = startTime;
		this.endTime = endTime;
		this.description = synopsis;
		
		try{
			ip = InetAddress.getByName("ERASER.local");			
		}catch(IOException e){
			//TODO
		}
	}
	
	/*Getters*/
	public InetAddress getIp(){ return this.ip; }
	
	public String getId(){return this.Id;}
	
	public String getChannel(){	return this.channel;}
	
	public String getProg(){return this.prog;}
	
	public String getGender(){return this.gender;}
	
	public String getStartTime(){return this.startTime;	}
	
	public String getEndTime(){	return this.endTime;}
	
	public String getDescription(){	return this.description;}
	
	/*Setters*/
	public void setChannel(String channel){	this.channel = channel;	}
	
	public void setProg(String prog){ this.prog = prog;	}
	
	public void setGender(String gender){this.gender = gender;}
	
	public void setStartTime(String startTime){	this.startTime = startTime;	}
	
	public void setDndTime(String endTime){	this.endTime = endTime;	}

	public void setDescriptiom(String des){	this.description = des;	}
	
	

}
